<div class="account-form">
    <fieldset>
        <?php echo $this->Form->create( "User" ); ?>
        <div class="form-group"><?php echo $this->Form->input( "nume", array(

                "label" => "Nume",
                "class" => "form-control",
                "pattern" => "^[a-zA-Z]{3,}$"
            ) ); ?></div>
        <div class="form-group"><?php echo $this->Form->input( "init_tata", array(
                "label" => "Initiala tatalui",
                "class" => "form-control",
                "pattern" => "[a-zA-Z]"
            ) ); ?></div>
        <div class="form-group"><?php echo $this->Form->input( "prenume", array(
                "label" => "Prenume",
                "class" => "form-control",
                "pattern" => "^[a-zA-Z]{3,}$"
            ) ); ?></div>
        <div class="form-group"><?php echo $this->Form->input( "email", array(
                "label" => "Email",
                "class" => "form-control",
                "type" => "email"
            ) ); ?></div>
        <div class="form-group"><?php echo $this->Form->input( "tip", array(
                "label"   => "Tip",
                "class"   => "form-control",
                "options" => array(
                    "student"  => "Student",
                    "profesor" => "Profesor"
                )
            ) ); ?>

        <div class="form-group"><?php echo $this->Form->input( "subiecte_interes", array(
                "label" => "Subiecte Interes",
                "class" => "form-control"
            ) ); ?></div>
        <div class="form-group"><?php echo $this->Form->input( "username", array(
                "label" => "Username",
                "class" => "form-control",
                "pattern" => "^[a-zA-Z][a-zA-Z0-9-_\.]{1,20}$"
            ) ); ?></div>
        <div class="form-group"><?php echo $this->Form->input( "password", array(
                "label" => "Parola",
                "class" => "form-control",
                "pattern" => "^[a-zA-Z0-9_-]{4,}$"
            ) ); ?></div>
        <div class="form-group"><?php echo $this->Form->input( "subiecte_interes", array(
                "label" => "Subiecte Interes",
                "class" => "form-control"
            ) ); ?></div>
        <?php echo $this->Form->end( array(
                                         "label" => "Register",
                                         "class" => "btn"
                                     ) ); ?>
    </fieldset>
</div>